package com.example.appdemo1.service.imp;

import com.example.appdemo1.entity.ShopUser;
import com.example.appdemo1.mapper.ShopUserMapper;
import com.example.appdemo1.service.ShopUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ShopUserServiceImp implements ShopUserService {
    @Autowired
    private ShopUserMapper shopUserMapper;
    @Override
    public void save(ShopUser shopUser) {
        shopUserMapper.save(shopUser);
    }

    @Override
    public ShopUser findShopUserById(Integer id) {
        return shopUserMapper.findShopUserById(id);
    }
}
